let marbleRaceLevel7_7 = {
	name: 'Game 7 Level 7',
	comment:'过关奖5分',
	id: '7_7',
	type: 'value',
	valueIncrement:-1,
	valueBonus:5,
	scoreBonus:1,
	valueThreshold:0,
	minPass:1,
	objects: [
		// Portals
		{
			type: 'object',
			shape: 'rect',
			color: '@a',
			toPortal: 'a',
			x: 180,
			y: 540 - 10,
			width: 200,
			height: 20
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@goal',
			toPortal: 'goal',
			isGoal: true,
			x: 340,
			y: 540 - 10,
			width: 120,
			height: 20
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@a',
			toPortal: 'a',
			x: 500,
			y: 540 - 10,
			width: 200,
			height: 20
		},
		{
			type: 'object',
			shape: 'circle',
			color: '@a',
			portalID: 'a',
			x: 340,
			y: 80,
			radius: 5
		},

		// Goal portal
		{
			type: 'object',
			shape: 'circle',
			color: '@goal',
			portalID: 'goal',
			x: 700,
			y: 80,
			radius: 5
		},

		// Obstacles
		{
			type: 'object',
			shape: 'polygon',
			color: '@secondary',
			x: 210,
			y: 200,
			vertices:[{x:-60,y:-60},{x:-60,y:60},{x:60,y:60},{x:60,y:-60},{x:80,y:-60},{x:80,y:80},{x:-80,y:80},{x:-80,y:-60}],
			onBeforeUpdate: function (object, engine) {
				engine.setAngle(object.body, 2*engine.time)
			}
		},
		{
			type: 'object',
			shape: 'polygon',
			color: '@secondary',
			x: 340,
			y: 200,
			vertices:[{x:-60,y:-60},{x:-60,y:60},{x:60,y:60},{x:60,y:-60},{x:80,y:-60},{x:80,y:80},{x:-80,y:80},{x:-80,y:-60}],
			onBeforeUpdate: function (object, engine) {
				engine.setAngle(object.body, 2*engine.time)
			}
		},
		{
			type: 'object',
			shape: 'polygon',
			color: '@secondary',
			x: 470,
			y: 200,
			vertices:[{x:-60,y:-60},{x:-60,y:60},{x:60,y:60},{x:60,y:-60},{x:80,y:-60},{x:80,y:80},{x:-80,y:80},{x:-80,y:-60}],
			onBeforeUpdate: function (object, engine) {
				engine.setAngle(object.body, 2*engine.time)
			}
		},
		{
			type: 'object',
			shape: 'polygon',
			color: '@secondary',
			x: 210,
			y: 400,
			vertices:[{x:-60,y:-60},{x:-60,y:60},{x:60,y:60},{x:60,y:-60},{x:80,y:-60},{x:80,y:80},{x:-80,y:80},{x:-80,y:-60}],
			onBeforeUpdate: function (object, engine) {
				engine.setAngle(object.body, -2*engine.time)
			}
		},
		{
			type: 'object',
			shape: 'polygon',
			color: '@secondary',
			x: 340,
			y: 400,
			vertices:[{x:-60,y:-60},{x:-60,y:60},{x:60,y:60},{x:60,y:-60},{x:80,y:-60},{x:80,y:80},{x:-80,y:80},{x:-80,y:-60}],
			onBeforeUpdate: function (object, engine) {
				engine.setAngle(object.body, -2*engine.time)
			}
		},
		{
			type: 'object',
			shape: 'polygon',
			color: '@secondary',
			x: 470,
			y: 400,
			vertices:[{x:-60,y:-60},{x:-60,y:60},{x:60,y:60},{x:60,y:-60},{x:80,y:-60},{x:80,y:80},{x:-80,y:80},{x:-80,y:-60}],
			onBeforeUpdate: function (object, engine) {
				engine.setAngle(object.body, -2*engine.time)
			}
		},

		// Borders
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 400,
			y: 0,
			width: 800,
			height: 120
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 400,
			y: 600,
			width: 800,
			height: 120
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 0,
			y: 300,
			width: 160,
			height: 600
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 800,
			y: 300,
			width: 160,
			height: 600
		},
		{
			type: 'object',
			shape: 'rect',
			color: '@tertiary',
			x: 640,
			y: 300,
			width: 80,
			height: 600
		},

		// Marbles
		{
			type: 'marbles',
			x: 340,
			y: 80,
			launchTime: 3,
			launchRadius: 75,
			passX: 700,
			passY: 80,
			radius: 8,
			eliminatedRadius: 6,
			velocity: 5
		},
	]
}
marbleRaceLevels.push(marbleRaceLevel7_7)